function printCoord(obj) {
    var _a;
    console.log("obj first: ".concat(obj.first));
    // console.log(`obj last: ${obj.last || '没有'}`);
    // if (obj.last !== undefined) {
    //     console.log(`obj last: ${obj.last.toUpperCase()}`);
    // }
    console.log("obj last: ".concat((_a = obj.last) === null || _a === void 0 ? void 0 : _a.toUpperCase()));
}
printCoord({ first: 'diaomao' });
printCoord({ first: 'diao-', last: 'mao' });
